@layout("/common/_container.html",{js:["/assets/common/libs/pinyin/initials.js","/assets/common/libs/pinyin/pinyin.js","/assets/modular/system/btyBxda/btyBxda_add2.js","/assets/modular/system/zxBx/zxChengben_mingxi.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">管理</span>
</div>
<style>
    .zxxz{
        color: #00B83F;
    }
    .zx-name{
        width: 43px;
    }
    .mxbtn{
        width: 65px;
        padding: 0;
    }
    .btnshop {
        display: inline-block;
        height: 30px;
        line-height: 30px;
        padding: 0 18px;
        background-color: #009688;
        color: #fff;
        white-space: nowrap;
        text-align: center;
        font-size: 14px;
        border: none;
        border-radius: 2px;
        cursor: pointer;
        margin-bottom: 10px;
    }
</style>
<div class="layui-fluid">
    <form id="zxChengbenForm" lay-filter="zxChengbenForm" class="layui-form" style="">

        <div class="layui-card">
            <div class="layui-card-header">报销单
                <div class="layui-inline" style="float: right">
                    <a class="layui-btn layui-btn-sm layui-btn-normal" id="backupPage">&emsp;返回&emsp;</a>
                </div>
            </div>
            <div class="layui-card-body">
                <input name="btyZxChengbenId" type="hidden"/>
                <input name="btyyBxdaId" type="hidden" value="${bxda.yhk}"/>
                <input name="btyyBxdaIdView" type="hidden" value="${bxda.xm}"/>
                <input name="yhKahao" type="hidden" value="${bxda.yhk}"/>
                <input name="yhKaihuhang" type="hidden" value="${bxda.khh}"/>


                <div class="layui-row layui-col-space10">
                    <div class="layui-col-md4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">单号<span style="color: red;">*</span></label>
                            <div class="layui-input-block">
                                <input id="company" name="company" placeholder="" type="text" class="layui-input" disabled/>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-md4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">日期<span style="color: red;">*</span></label>
                            <div class="layui-input-block">
                                <input id="riqi" name="riqi" placeholder="请选择日期" type="text" class="layui-input"
                                       lay-verify="required" required disabled/>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-md4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">门店</label>
                            <div class="layui-input-block">
                                <select name="btyZxMdzxId" lay-filter="btyZxMdzxId1" id="btyZxMdzxId1"
                                        lay-search="btyZxMdzxId" disabled>
                                    <option value="">请选择</option>
                                </select>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-row layui-col-space10">
                    <div class="layui-col-md4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">摘要<span style="color: red;">*</span></label>
                            <div class="layui-input-block">
                                <input id="zhaiyao" name="zhaiyao" placeholder="请输入摘要" type="text" class="layui-input" lay-verify="required" disabled/>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-md4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">金额</label>
                            <div class="layui-input-block">
                                <input id="zongjia" name="zongjia" placeholder="请输入金额" type="text" class="layui-input" lay-verify="required|double" disabled/>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-md4">
                        <div class="layui-form-item">
                            <label class="layui-form-label">备注</label>
                            <div class="layui-input-block">
                                <input id="beizhu1" name="beizhu" placeholder="请输入备注" type="text" class="layui-input" disabled/>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </div>
    </form>
    <form id="zxChengbenMingxiForm" lay-filter="zxChengbenMingxiForm" class="layui-form">

        <div class="layui-card">
            <div class="layui-tab">
                <ul class="layui-tab-title">
                    <li class="layui-this">报销单明细</li>
                </ul>
                <div class="layui-tab-content">
                    <div class="layui-tab-item layui-show">
                        <div class="layui-card-body">


                            <table class="layui-table" id="zxChengbenMingxiTable" lay-filter="zxChengbenMingxiTable"></table>
                        </div>
                    </div>

                </div>
            </div>

        </div>
    </form>

</div>

<script type="text/html" id="tableBar">
    {{#  if(d.status == "5" || d.status == "4" || d.status == "3"){ }}
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">修改</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
    {{#  } }}

</script>
<script id="statusTpl" type="text/html">
    {{#  if(d.btyZxChengbenId == ""){ }}
    未生成
    {{#  }else{ }}
    已生成🔒
    {{#  } }}
</script>
<script id="statusTpl2" type="text/html">
    {{#  if(d.status == "4"){ }}
    待提交
    {{#  }else if(d.status == "3"){ }}
    待审批
    {{#  }else if(d.status == "2"){ }}
    待打款
    {{#  }else if(d.status == "1"){ }}
    已打款
    {{#  }else if(d.status == "5"){ }}
    被打回
    {{#  }else{ }}
    未打款
    {{#  } }}
</script>
@}
